package com.example.learnapp;

import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.example.learnapp.Utils.EquipmentUtil;


public class Device_info_Activity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_device_info);

        TextView device_info = findViewById(R.id.device_info);
        device_info.setText(get_device_info());
    }

    private StringBuilder get_device_info() {
        StringBuilder str_info = new StringBuilder();
        str_info.append("\n手机厂商：" + EquipmentUtil.getDeviceBrand());
        str_info.append("\n手机厂商：" + EquipmentUtil.getDeviceBrand());
        str_info.append("\n手机型号：" + EquipmentUtil.getSystemModel());
        str_info.append("\n手机当前系统语言：" + EquipmentUtil.getSystemLanguage());
        str_info.append("\nAndroid系统版本号：" + EquipmentUtil.getSystemVersion());

        str_info.append("\n手机设备名：" + EquipmentUtil.getSystemDevice());
        str_info.append("\n主板名：" + EquipmentUtil.getDeviceBoand());
        str_info.append("\n手机厂商名：" + EquipmentUtil.getDeviceManufacturer());
        str_info.append("\n手机IMEI：" + EquipmentUtil.getIMEI(this));
        return str_info;
    }

}